package com.taa.dto;

import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: taa
 * @Desc: 订单详情DTO
 * @Create: 2025-06-22 17:34
 **/
@Data
@Builder
public class OrderDetailDTO {

    private String orderNo;
    private BigDecimal totalAmount;
    private Integer status; // 0:待支付, 1:已支付, 2:已取消
    private LocalDateTime createTime;
    private List<OrderItemDetailDTO> items;

    /**
     * 内部类，用于表示订单详情中的每个明细项
     */
    @Data
    @Builder
    public static class OrderItemDetailDTO {
        private String dishName;
        private BigDecimal dishPrice;
        private Integer quantity;
    }

}

